import 'package:farmer/ui/widgets/LoginInput.dart';
import 'package:farmer/ui/widgets/appbar.dart';
import 'package:flutter/material.dart';
import 'package:flutter_splash_screen/flutter_splash_screen.dart';

class RegistrationPage extends StatefulWidget {
  const RegistrationPage({Key key}) : super(key: key);

  @override
  _RegistrationPageState createState() => _RegistrationPageState();
}

class _RegistrationPageState extends State<RegistrationPage> {
  @override
  void initState() {
    super.initState();
    FlutterSplashScreen.hide();
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: appBar("注册", "登录", (){
        print("right button click");
      }),
      body: Container(
          child: ListView(
            children: [
              LoginInput("用户名", "请输入用户名",
              onChanged: (text){
                print(text);
              },)
            ],
          ),
      ),
    );
  }
}
